Optimal. Leaf size=105 \[ x \sqrt {a+\frac {b}{x}+\frac {c}{x^2}}+\frac {b \tanh ^{-1}\left (\frac {2 a+\frac {b}{x}}{2 \sqrt {a} \sqrt {a+\frac {b}{x}+\frac {c}{x^2}}}\right )}{2 \sqrt {a}}-\sqrt {c} \tanh ^{-1}\left (\frac {b+\frac {2 c}{x}}{2 \sqrt {c} \sqrt {a+\frac {b}{x}+\frac {c}{x^2}}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 105, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {1342, 732, 843, 621, 206, 724} \[ x \sqrt {a+\frac {b}{x}+\frac {c}{x^2}}+\frac {b \tanh ^{-1}\left (\frac {2 a+\frac {b}{x}}{2 \sqrt {a} \sqrt {a+\frac {b}{x}+\frac {c}{x^2}}}\right )}{2 \sqrt {a}}-\sqrt {c} \tanh ^{-1}\left (\frac {b+\frac {2 c}{x}}{2 \sqrt {c} \sqrt {a+\frac {b}{x}+\frac {c}{x^2}}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 621
Rule 724
Rule 732
Rule 843
Rule 1342
Rubi steps
\begin {align*} \int \sqrt {a+\frac {c}{x^2}+\frac {b}{x}} \, dx &=-\operatorname {Subst}\left (\int \frac {\sqrt {a+b x+c x^2}}{x^2} \, dx,x,\frac {1}{x}\right )\\ &=\sqrt {a+\frac {c}{x^2}+\frac {b}{x}} x-\frac {1}{2} \operatorname {Subst}\left (\int \frac {b+2 c x}{x \sqrt {a+b x+c x^2}} \, dx,x,\frac {1}{x}\right )\\ &=\sqrt {a+\frac {c}{x^2}+\frac {b}{x}} x-\frac {1}{2} b \operatorname {Subst}\left (\int \frac {1}{x \sqrt {a+b x+c x^2}} \, dx,x,\frac {1}{x}\right )-c \operatorname {Subst}\left (\int \frac {1}{\sqrt {a+b x+c x^2}} \, dx,x,\frac {1}{x}\right )\\ &=\sqrt {a+\frac {c}{x^2}+\frac {b}{x}} x+b \operatorname {Subst}\left (\int \frac {1}{4 a-x^2} \, dx,x,\frac {2 a+\frac {b}{x}}{\sqrt {a+\frac {c}{x^2}+\frac {b}{x}}}\right )-(2 c) \operatorname {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {b+\frac {2 c}{x}}{\sqrt {a+\frac {c}{x^2}+\frac {b}{x}}}\right )\\ &=\sqrt {a+\frac {c}{x^2}+\frac {b}{x}} x+\frac {b \tanh ^{-1}\left (\frac {2 a+\frac {b}{x}}{2 \sqrt {a} \sqrt {a+\frac {c}{x^2}+\frac {b}{x}}}\right )}{2 \sqrt {a}}-\sqrt {c} \tanh ^{-1}\left (\frac {b+\frac {2 c}{x}}{2 \sqrt {c} \sqrt {a+\frac {c}{x^2}+\frac {b}{x}}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.08, size = 128, normalized size = 1.22 \[ \frac {x \sqrt {a+\frac {b x+c}{x^2}} \left (b \tanh ^{-1}\left (\frac {2 a x+b}{2 \sqrt {a} \sqrt {x (a x+b)+c}}\right )+2 \sqrt {a} \left (\sqrt {x (a x+b)+c}-\sqrt {c} \tanh ^{-1}\left (\frac {b x+2 c}{2 \sqrt {c} \sqrt {x (a x+b)+c}}\right )\right )\right )}{2 \sqrt {a} \sqrt {x (a x+b)+c}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.31, size = 590, normalized size = 5.62 \[ \left [\frac {4 \, a x \sqrt {\frac {a x^{2} + b x + c}{x^{2}}} + \sqrt {a} b \log \left (-8 \, a^{2} x^{2} - 8 \, a b x - b^{2} - 4 \, a c - 4 \, {\left (2 \, a x^{2} + b x\right )} \sqrt {a} \sqrt {\frac {a x^{2} + b x + c}{x^{2}}}\right ) + 2 \, a \sqrt {c} \log \left (-\frac {8 \, b c x + {\left (b^{2} + 4 \, a c\right )} x^{2} + 8 \, c^{2} - 4 \, {\left (b x^{2} + 2 \, c x\right )} \sqrt {c} \sqrt {\frac {a x^{2} + b x + c}{x^{2}}}}{x^{2}}\right )}{4 \, a}, \frac {2 \, a x \sqrt {\frac {a x^{2} + b x + c}{x^{2}}} - \sqrt {-a} b \arctan \left (\frac {{\left (2 \, a x^{2} + b x\right )} \sqrt {-a} \sqrt {\frac {a x^{2} + b x + c}{x^{2}}}}{2 \, {\left (a^{2} x^{2} + a b x + a c\right )}}\right ) + a \sqrt {c} \log \left (-\frac {8 \, b c x + {\left (b^{2} + 4 \, a c\right )} x^{2} + 8 \, c^{2} - 4 \, {\left (b x^{2} + 2 \, c x\right )} \sqrt {c} \sqrt {\frac {a x^{2} + b x + c}{x^{2}}}}{x^{2}}\right )}{2 \, a}, \frac {4 \, a x \sqrt {\frac {a x^{2} + b x + c}{x^{2}}} + 4 \, a \sqrt {-c} \arctan \left (\frac {{\left (b x^{2} + 2 \, c x\right )} \sqrt {-c} \sqrt {\frac {a x^{2} + b x + c}{x^{2}}}}{2 \, {\left (a c x^{2} + b c x + c^{2}\right )}}\right ) + \sqrt {a} b \log \left (-8 \, a^{2} x^{2} - 8 \, a b x - b^{2} - 4 \, a c - 4 \, {\left (2 \, a x^{2} + b x\right )} \sqrt {a} \sqrt {\frac {a x^{2} + b x + c}{x^{2}}}\right )}{4 \, a}, \frac {2 \, a x \sqrt {\frac {a x^{2} + b x + c}{x^{2}}} - \sqrt {-a} b \arctan \left (\frac {{\left (2 \, a x^{2} + b x\right )} \sqrt {-a} \sqrt {\frac {a x^{2} + b x + c}{x^{2}}}}{2 \, {\left (a^{2} x^{2} + a b x + a c\right )}}\right ) + 2 \, a \sqrt {-c} \arctan \left (\frac {{\left (b x^{2} + 2 \, c x\right )} \sqrt {-c} \sqrt {\frac {a x^{2} + b x + c}{x^{2}}}}{2 \, {\left (a c x^{2} + b c x + c^{2}\right )}}\right )}{2 \, a}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 121, normalized size = 1.15 \[ \frac {\sqrt {\frac {a \,x^{2}+b x +c}{x^{2}}}\, \left (-2 \sqrt {a}\, \sqrt {c}\, \ln \left (\frac {b x +2 c +2 \sqrt {a \,x^{2}+b x +c}\, \sqrt {c}}{x}\right )+b \ln \left (\frac {2 a x +b +2 \sqrt {a \,x^{2}+b x +c}\, \sqrt {a}}{2 \sqrt {a}}\right )+2 \sqrt {a \,x^{2}+b x +c}\, \sqrt {a}\right ) x}{2 \sqrt {a \,x^{2}+b x +c}\, \sqrt {a}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a + \frac {b}{x} + \frac {c}{x^{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.13, size = 100, normalized size = 0.95 \[ x\,\sqrt {\frac {1}{x^2}}\,\sqrt {a\,x^2+b\,x+c}-\sqrt {c}\,x\,\ln \left (\frac {2\,c+2\,\sqrt {c}\,\sqrt {a\,x^2+b\,x+c}+b\,x}{x}\right )\,\sqrt {\frac {1}{x^2}}+\frac {b\,x\,\ln \left (\frac {\frac {b}{2}+\sqrt {a}\,\sqrt {a\,x^2+b\,x+c}+a\,x}{\sqrt {a}}\right )\,\sqrt {\frac {1}{x^2}}}{2\,\sqrt {a}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a + \frac {b}{x} + \frac {c}{x^{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________